home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
comm
/
prtcs155.zip
/
SHOWAC.WPL
< prev
next >
Wrap
Text File
|
1994-01-14
|
2KB
|
58 lines
/**/
v="$VER: ShowAC Wplrx Display an RFS Account Williamson 54.02"
options RESULTS
cr = '\r\n' /* WPL */
quote='"'
call open('rcfg',"ram:RFS.cfg",'r')
x=seek('rcfg',-512,'E')
do while ~eof('rcfg')
z=readln('rcfg')
if upper(left(word(z,1),3))="MAX" then interpret z
end
call close('rcfg')
parse arg baud port username
u=translate(strip(UserName),'_'," ")
AcctFile="LOG:RFSacct/h/"||u||".0.0.0.0"
if ~exists(AcctFile) then call send(' No account: 'username ||cr)
else do
call open('Acct',AcctFile,'R')
FirstDate = readln('Acct')
LastDate = readln('Acct')
NumReqs = readln('Acct')
ReqFiles = readln('Acct')
ReqBytes = readln('Acct')
LastBytes = readln('Acct')
UserCalls = readln('Acct')
call close('Acct')
if Date() = LastDate then
do
availbytes =(MaxDaily-LastBytes) "*"
availsessions =(MaxCalls-UserCalls) "*"
Vavailbytes =((100*baud)-LastBytes) "*"
end
else do
availbytes=MaxHBytes
availsessions=MaxCalls
Vavailbytes=(100*baud)
end
call send(cr)
call send(' Account for 'username' as of 'date()||cr)
call send(' First Call : 'Firstdate||cr)
call send(' Last Call : 'LastDate||cr)
call send(' Number of Requests : 'NumReqs||cr)
call send(' Files Transfered : 'ReqFiles||cr)
call send(' Total Bytes Sent : 'ReqBytes||cr)
call send(' Bytes Sent Last Call : 'LastBytes||cr)
call send(' Number of Sessions : 'Usercalls||cr)
call send(' Bytes available - leech : 'availbytes||cr)
call send(' Bytes available - verified : 'Vavailbytes||cr)
call send(' Remaining Sessions : 'availsessions||cr||cr)
end
exit
send:
'Print' quote||arg(1)||quote
'Send' quote||arg(1)||quote
return